#include "ExtendDevice.h"

#include "HalUtility.h"

std::string& ExtendDevice::check(DummyChannel& channel, std::string& result) {
    try {
        std::string parameter{"<AT_CHECK0>"};
        channel.sendStringReturnString(parameter, result);

    } catch (std::exception& ex) {
        LOG_ERROR(ex.what());
    }

    return result;
}



bool ExtendDevice::activeUpdateForRecheck() noexcept {
    bool result = false;
    try {
        return activeUpdateInformation();
    } catch (std::exception& ex) {
        LOG_ERROR("activeUpdateInformation for recheck error:%s", ex.what());
    } catch (...) {
        LOG_ERROR("activeUpdateInformation for recheck error");
    }

    return false;
}



ExtendDevice* ExtendDevice::getDevice(const ExtendDeviceType& deviceType) {

    return this;
}

